// No programmable web.xml path yet, so put it in the right place automatically
eventGenerateWebXmlEnd = {
	packagePluginsForWar("${basedir}/web-app")
	System.setProperty("grails.server.factory", "com.tsyganok.jetty7.JettyServerFactory")
}

eventWarStart = { arg ->
//  println "Got argument: ${arg.inspect()}"
//  if (grailsEnv == "production") {
//    println "Removing jetty jars"
//    Ant.delete(file:"${arg.stagingDir}/WEB-INF/lib/jetty-*.jar")
//  }
}